const { merge } = require("webpack-merge");
const commonConfig = require("./webpack.common.js");
const path = require("path");
const ip = require("ip");
const localIP = "0.0.0.0" || ip.address();

module.exports = merge(commonConfig, {
    mode: "development",
    devtool: "source-map",
    target: "web",
    devServer: {
        host: localIP,
        contentBase: path.resolve(__dirname, "./dist"),
        publicPath: "/",
        open: true,
        hot: true,
        port: 8000
    }
});